<div class="main-div">
    <form action="" method="post" id="formID">
        <input type="hidden" name="uri" value="<?php echo $this->uri;?>" />
        <input type="hidden" name="act" value="<?php echo $this->article['act'] ? 'save' : '';?>" />
        <input type="hidden" name="article_id" value="<?php echo $this->article['article_id'];?>" />
        <input type="hidden" name="this_url" value="<?php echo $this->thisUrl;?>" />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="35" align="right">文章标题</td>
                <td><span>
                        <input class="validate[required,length[4,128]] text-input" name="title" value="<?php echo $this->article['title']; ?>" type="text" id="title" />
                    </span><span class="red">*</span></td>
           	</tr>
            <tr>
                <td width="22%" height="35" align="right">文章分类</td>
                <td width="78%"><label>
                        <select name="cat_id" id="cat_id" class="validate[required]">
                            <option value="">请选择分类</option>
                            <?php
                            foreach ($this->catlist as $cat):
                                echo '<option value="'. $cat['cat_id'] .'"';
                                echo isset($this->article['cat_id']) && $this->article['cat_id'] == $cat['cat_id'] ? 'selected' : '';
                                echo  '>';
                                echo str_repeat('&nbsp;', $cat['level'] * 2) . $cat['cat_name'] .'</option>';
                            endforeach
                            ?>
                        </select>
                        <span class="red">*</span></label></td>
            </tr>
            <tr>
                <td height="35" align="right">作者</td>
                <td><input class="text-input" name="author" type="text" id="author" value="<?php echo $this->article['author']; ?>" /></td>
            </tr>
            <tr>
                <td height="35" align="right">Email</td>
                <td><input class="text-input" name="email" type="text" id="email" value="<?php echo $this->article['email']; ?>" /></td>
           	</tr>
            <tr>
                <td height="35" align="right">关键字</td>
                <td><input class="text-input" name="keywords" type="text" id="keywords" value="<?php echo $this->article['keywords']; ?>" /></td>
            </tr>
            <tr>
                <td height="35" align="right" valign="top">内容</td>
                <td>
                    <?php echo $this->fck->Create(); ?></td>
            </tr>
            <tr>
                <td height="63" align="right">&nbsp;</td>
                <td><input type="submit" name="Submit" value="确认" class="button" />
                    &nbsp;&nbsp; <input type="reset" name="Submit2" value="重置" class="button" /></td>
            </tr>
            <tr>
                <td height="30">&nbsp;</td>
                <td>&nbsp;<span class="red"></span></td>
            </tr>
        </table>
    </form>
</div>


